@extends('admin.layout')
@section('content')
   <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                轮播图管理
                <small>修改</small>
            </h1>
            <ol class="breadcrumb">
                <li><a href="#"><i class="fa fa-dashboard"></i> 后台主页</a></li>
                <li><a href="#">轮播图修改</a></li>
                <li class="active">图片修改</li>
            </ol>
        </section>

        <!-- Main content -->
        <section class="content">
            <div class="row">
                <!-- left column -->
                <div class="col-md-12">
                    <!-- general form elements -->
                    <div class="box box-primary">
                        <div class="box-header with-border">
                            <h3 class="box-title">轮播图快速修改</h3>
                        </div><!-- /.box-header -->
                 
                        <!-- form start -->
                        <form role="form" action="{{ url('/admin/img/update')}}" method='post' enctype='multipart/form-data'>
                            <input type="hidden" name="iid" value="{{ $data -> id }}">
                                  {{csrf_field()}}
                            <div class="box-body">
                          
                                
                                      <!-- select -->

                                    <div class="form-group">
                                        <label>商品</label>
                                        <select class="form-control" name='id'>
                                        @foreach($goods as $good)
                                            <option value='{{ $good -> id }}'>{{ $good -> name }}</option>
                                        @endforeach
                                        </select>
                                    </div>

                                    <label for="file">请添加图片:</label>
                                    <input type="file" name="img" />
                                    <br /> 
                            </div><!-- /.box-body -->

                            <div class="box-footer">
                                <button type="submit" class="btn btn-primary">确认修改</button>
                            </div>
                        </form>
                    

                   
                   
                    <!-- Input addon -->
              
            </div>   <!-- /.row -->
        </section><!-- /.content -->
    </div><!-- /.content-wrapper -->


@endsection